const getters = {
  sidebar: state => state.app.sidebar,
  dictinfo: state => (key, code) => {
    for (let o of state.app.dict[key]) {
      if (o.code === code) {
        return o.name
      }
    }
  },
  dictList: state => (key) => {
    return state.app.dict[key];
  },
  menu: state => state.app.menu,
  auth: state => state.app.auth,
  userinfo: state => state.app.userinfo,
  vuexStore: state => state.app.vuexStore
}
export default getters
